/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.travelFinder.domain;

import com.travelFinder.domain.utils.OffDays;
import com.travelFinder.domain.utils.Weekdays;
import java.util.Date;
import org.springframework.data.neo4j.annotation.*;

/**
 *
 * @author Kryl
 */
@RelationshipEntity(type = "CONNECTION_TO")
public class Connection {
    //Wrapper listy dla sortowania

    @GraphId
    Long id;
    @StartNode
    Place start;
    @EndNode
    Place end;
    private String connectionId;
    private String company;
    private ConnectionType type;
    private Date startDate;
    private Date endDate;
    @GraphProperty
    private OffDays offdays;
    @GraphProperty
    private Weekdays weekdaysActive;
    private Boolean[] weekdaysActive2;

    public Boolean[] getWeekdaysActive2() {
        return weekdaysActive2;
    }

    public void setWeekdaysActive2(Boolean[] weekdaysActive2) {
        this.weekdaysActive2 = weekdaysActive2;
    }
    private Integer startTime;
    private Integer duration;

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getConnectionId() {
        return connectionId;
    }

    public void setConnectionId(String connectionId) {
        this.connectionId = connectionId;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public OffDays getOffdays() {
        return offdays;
    }

    public void setOffdays(OffDays offdays) {
        this.offdays = offdays;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public ConnectionType getType() {
        return type;
    }

    public void setType(ConnectionType type) {
        this.type = type;
    }

    public Weekdays getWeekdaysActive() {
        return weekdaysActive;
    }

    public void setWeekdaysActive(Weekdays weekdaysActive) {
        this.weekdaysActive = weekdaysActive;
    }

    public void setEnd(Place end) {
        this.end = end;
    }

    public void setStart(Place start) {
        this.start = start;
    }

    public Connection() {
    }

    public Place getEnd() {
        return end;
    }

    public Long getId() {
        return id;
    }

    public Place getStart() {
        return start;
    }

    public Connection(Place start, Place End) {
        this.start = start;
        this.end = End;
    }
}
